PLG is the format used by the rend386 real time renderer for the IBM PC.
irit2plg [-l] [-4] [-F PolyOpti FineNess] [-T] [-z] DFiles
-l: Linear - forces linear (degree two) surfaces to be approximated by a single polygon along their linear direction. Although, most of the time, linear direction can be exactly represented using a single polygon, even a bilinear surface can have a free form shape (saddle like) that is not representable using a single polygon. Note that although this option will better emulate the surface shape, it will create unnecessary polygons in cases where one is enough. -4: Four - Generates four polygons per flat patch. Default is 2. -F PolyOpti FineNess: Optimality of polygonal approximation of surfaces. See the variable POLY_APPROX_OPT for the meaning of FineNess. See also -4. -T: Talkative mode. Prints processing information. -z: Prints version number and current defaults.
Irit2Plg converts freeform surfaces and polygons into polygons in a format that can be used by the REND386 renderer.
Example:
irit2plg solid1.dat > solid1.plg
Surfaces are converted to polygons with fineness control:
irit2plg -F 0 16 - view.mat < saddle.dat > saddle.plg
Note the use of '-' for stdin.